{% extends 'template.html' %}

{% block username %}
    {{ request.user.username }}
{% endblock %}

{% block content %}
    <div id="page-wrapper">
        <div class="row">
            <div class="col-lg-12">
                <h1 class="page-header">用户变更记录</h1>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-12">
                <div class="panel panel-default">
                    <div class="panel-body">
                        <div class="form-group row">
                            <label class="col-sm-12">操作人</label>
                            <div class="col-sm-4">
                                <input id="search_create_user" type="text" name="操作人" value="" class="form-control">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-12">用户/部门</label>
                            <div class="col-sm-4">
                                <input id="search_change_obj" type="text" name="用户/部门" value="" class="form-control">
                            </div>
                        </div>
                        <table id="mytable" width="100%" cellspacing="0" class="table table-striped table-hover">
                            <thead>
                            <tr>
                                <th>操作时间</th>
                                <th>操作人</th>
                                <th>用户/部门</th>
                                <th>操作类型</th>
                                <th>备注</th>
                            </tr>
                            </thead>
{#                            <tbody>#}
{#                            {% for record in all_record %}#}
{#                                <tr>#}
{#                                    <td>{{ record.create_time|date:"Y-m-d H:i:s" }}</td>#}
{#                                    <td>{{ record.create_user.username }}</td>#}
{#                                    <td>{{ record.change_obj }}</td>#}
{#                                    <td>{{ record.get_type_display }}</td>#}
{#                                    <td>{{ record.remark }}</td>#}
{#                                </tr>#}
{#                            {% endfor %}#}
{#                            </tbody>#}
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
{% endblock %}
{% block bodyjs %}
    <script src="/static/js/jquery.dataTables.js"></script>
    <script src="/static/js/dataTables.colVis.js"></script>
    <script src="/static/js/users_change_record.js?v=20190902001"></script>
{% endblock %}
{% block css %}
    <link href="/static/css/jquery.dataTables.css" rel="stylesheet" type="text/css">
    <link href="/static/css/mycss.css" rel="stylesheet" type="text/css">
    <link href="/static/css/dataTables.colVis.css" rel="stylesheet" type="text/css">
{% endblock %}
